using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Black : Bird
{
    public float boomRadius=1;

    public Sprite sp;
    



    protected override void FullTimeSkill()
    {
        base.FullTimeSkill();
        Collider2D[] col= Physics2D.OverlapCircleAll(transform.position, boomRadius);
        foreach(Collider2D collider in col)
        {
            Destructiable des=collider.GetComponent<Destructiable>();
            if (des != null)
            {
                des.TakeDamage(int.MaxValue);
                
            }
        }
        state = BirdState.dead;
        sprite.sprite = sp;
        Invoke("LoadBird", 2f);
    }
}
